package lab02.Test06;

import com.sun.org.apache.bcel.internal.generic.LADD;

/**
 * Created by ASUS on 2017/10/15.
 */
public class Ladder {
    double upLong;
    double downLong;
    double Height;
    double area;
    public double getArea(){
        area = (upLong+downLong)*Height/2;
        return area;
    }
    public Ladder(double upLong,double downLong,double Height){
        this.upLong = upLong;
        this.downLong = downLong;
        this.Height = Height;
    }
    public static void main(String[] args){
        Ladder ladder = new Ladder(5,15,5);
        ladder.getArea();
    }
}
